﻿namespace WeiboPlus.Service
{
    public abstract class MappingBase<T1, T2> : IMapping<T1, T2>
    {
        protected string Key=string.Empty;

        public string IdentifyName
        {
            get
            {
                return Key+typeof(T1).Name + "|" + typeof(T2).Name;
            }
        }

        protected IMappingFactory _factory;

        public MappingBase(IMappingFactory factory)
        {
            _factory = factory;
        }

        public abstract T2 Map(T1 t1);  
    }
}
